//登录api
import axios from 'axios';
//获取验证码
export const getSmsCode = (phone) => {
    return axios.get("http://127.0.0.1:7001/sms/addSms?phone=" + phone);
}

//登录接口
//data是一个对象
export const login = (data) => {
    return axios.post("http://127.0.0.1:7001/user/login", data)
}